<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<form id="pagerForm" method="post" action="<c:url value="/orders/listOrder.do"/>">
	<input type="hidden" name="pageNum" value="1" /> 
	<input type="hidden" name="numPerPage" value="${pager.numPerPage}" />
</form>
<%-- <div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="<c:url value="/orders/listOrder.do"/>" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>我的客户：<input type="text" name="keyword" />
					</td>
					<td><select class="combox" name="province">
							<option value="">所有省市</option>
							<option value="北京">北京</option>
							<option value="上海">上海</option>
							<option value="天津">天津</option>
							<option value="重庆">重庆</option>
							<option value="广东">广东</option>
					</select></td>
					<td>建档日期：<input type="text" class="date" readonly="true" />
					</td>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">检索</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>
 --%>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="<c:url value="/orders/saveOrUpdateOrderForward.do"/>" target="navTab" rel="addOrder" external="true"><span>新增订单</span></a></li>
			<li><a class="edit" href="<c:url value="/orders/addOrder.do"/>?orderId={orderId}" target="navTab" rel="addOrder"><span>查看订单</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="75">
		<thead>
			<tr>
				<th width="25%">订单号</th>
				<th width="25%">创建时间</th>
				<th width="25%">订单状态</th>
				<th width="25%">更多操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${list}" var="item">
				<tr target="orderId" rel="${item.id}">
					<td><c:out value="${item.orderNo}"/></td>
					<td><c:out value="${item.createTime}"/></td>
					<td><c:out value="${item.status.description}"/></td>
					<td></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span> 
			<select class="combox" name="numPerPage"
				onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20" <c:if test="${pager.numPerPage == 20}">selected="selected"</c:if>>20</option>
				<option value="50" <c:if test="${pager.numPerPage == 50}">selected="selected"</c:if>>50</option>
				<option value="100" <c:if test="${pager.numPerPage == 100}">selected="selected"</c:if>>100</option>
				<option value="200" <c:if test="${pager.numPerPage == 200}">selected="selected"</c:if>>200</option>
			</select> 
			<span>条，共${pager.totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="${pager.totalCount}" numPerPage="${pager.numPerPage}" pageNumShown="10" currentPage="${pager.currentPage}"></div>
	</div>
</div>